package com.tbit.uqbike.webmanager.dao.core;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.object.pojo.Satisfaction;
import com.tbit.uqbike.object.pojo.dto.SatisfactionDTO;
import com.tbit.uqbike.object.pojo.vo.SatisfactionVO;
import com.tbit.uqbike.object.pojo.vo.StatisticsVO;

import java.util.List;

/**
 * 满意度调查
 * @author <a href="mailto:liu.haoxiang@tbit.com.cn">BUGXiang</a>
 * @version 1.0
 * @since 2024/5/10
 */
@DS(DataSource.LOG)
public interface SatisfactionDao extends BaseMapper<Satisfaction> {

    /**
     * 分页查询满意度调查
     * @param satisfactionDTO satisfactionDTO
     * @return List
     */
    List<SatisfactionVO> queryPage(SatisfactionDTO satisfactionDTO);

    /**
     * 满意度调查统计
     * @param satisfactionDTO satisfactionDTO
     * @return result
     */
    List<StatisticsVO> statistics(SatisfactionDTO satisfactionDTO);
}
